import { Column, Entity, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn } from 'typeorm';
import { ApiProperty } from '@nestjs/swagger';

@Entity('edu_class_course', {
  comment: '班级与课程关联表',
})
export class ClassCoursesEntity {
  @PrimaryGeneratedColumn({ type: 'int', name: 'id', comment: '主键ID' })
  public id: number;

  @ApiProperty({ description: '班级ID' })
  @Column({ type: 'int', name: 'class_id', comment: '班级ID' })
  public classId: number;

  @ApiProperty({ description: '课程ID' })
  @Column({ type: 'int', name: 'course_id', comment: '课程ID' })
  public courseId: number;
}
